package com.isdepci.project.gasEmission.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.gasEmission.mapper.LogisticsMapper;
import com.isdepci.project.gasEmission.domain.Logistics;
import com.isdepci.project.gasEmission.service.ILogisticsService;

/**
 * 物流Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-01
 */
@Service
public class LogisticsServiceImpl implements ILogisticsService
{
    @Autowired
    private LogisticsMapper logisticsMapper;

    /**
     * 查询物流
     */
    @Override
    public Logistics selectLogisticsById(Long id)
    {
        return logisticsMapper.selectLogisticsById(id);
    }

    /**
     * 查询物流列表
     */
    @Override
    public List<Logistics> selectLogisticsList(Logistics logistics)
    {
        return logisticsMapper.selectLogisticsList(logistics);
    }

    /**
     * 新增物流
     */
    @Override
    public int insertLogistics(Logistics logistics)
    {
        return logisticsMapper.insertLogistics(logistics);
    }

    /**
     * 修改物流
     */
    @Override
    public int updateLogistics(Logistics logistics)
    {
        return logisticsMapper.updateLogistics(logistics);
    }

    /**
     * 批量删除物流
     */
    @Override
    public int deleteLogisticsByIds(Long[] ids)
    {
        return logisticsMapper.deleteLogisticsByIds(ids);
    }

    /**
     * 删除物流信息
     */
    @Override
    public int deleteLogisticsById(Long id)
    {
        return logisticsMapper.deleteLogisticsById(id);
    }
}
